<!-- 组件说明 -->
<template>
    <div class='footer'>
         <el-row style="height:20vh;align-items: center;" type="flex" justify="center" align="center">
            <el-col :span="5" class="foottitle">
                联系我们: {{phonenumber}}
            </el-col>
            <el-col :span="5" class="foottitle">
                商业沟通：{{business}}
            </el-col>
            <el-col :span="5" class="foottitle">
                办公时间：{{worktime}}
            </el-col>
            <el-col :span="5" class="foottitle">
                办公地址：{{address}}
            </el-col>
            <!--<el-col :span="5">
                <div class="aboutus">
                    <div class="foottitle">关于我们</div>
                    <div class="footroute companydes" @click="routesJump(item.jumpUrl)" v-for="(item,index) in footcompany" :key="index">
                        {{item.name}}
                    </div>
                </div>
            </el-col>
            <el-col :span="5">
                <div class="joinus">
                    <div class="foottitle">招贤纳士</div>
                </div>
            </el-col>-->
        </el-row>
        <el-row style="height:5vh;">
            <el-col :span="24">
                <div class="footinfo">
                    版权所有：工信通（北京）信息技术有限公司  ©2019  京ICP备15024876号
                </div>
            </el-col>
        </el-row>
    </div>
</template>

<script>
    import {getFootInfo} from '../../request/api'
    //全局事件传参
    import Bus from '../../request/bus'
    export default {
        components: {

        },
        data () {
            return {
                business:'',
                phonenumber:'',
                address:'',
                worktime:'',
                footcompany:[
                    {name:'公司简介',jumpUrl:'#abouttitle'},
                    {name:'资质荣誉',jumpUrl:'#honor'},
                    {name:'成功案例',jumpUrl:'#successexample'},
                ],
            };
        },
        computed: {

        },
        methods: {
            getCompanyinfo(){
                getFootInfo().then(res=>{
                    this.business = res.businessCommunication
                    this.phonenumber = res.phone
                    this.address = res.contactAddress
                    this.worktime = res.worktime
                })
            },
            //底部信息跳转
            routesJump(dom){
                Bus.$emit("authordombottom", dom);
            }
        },
        mounted() {
            this.getCompanyinfo();
        },
        //生命周期 - 创建之前
        beforeCreate() {},
        //生命周期 - 挂载之前
        beforeMount() {},
        //生命周期 - 更新之前
        beforeUpdate() {},
        //生命周期 - 更新之后
        updated() {},
        //生命周期 - 销毁之前
        beforeDestroy() {},
        //生命周期 - 销毁完成
        destroyed() {},
        //如果页面有keep-alive缓存功能，这个函数会触发
        activated() {},
    }
</script>

<style scoped>
.footroute{
    cursor: pointer;
}
.footroute:hover{
    color: #67aff9
}
.footer{
    background-color: #425383;
    padding:0;
}
.contactus,.aboutus,.joinus{
    height: 100px;

}
.foottitle{
    font-family: MicrosoftYaHei;
	font-size: 16px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: -1px;
	color: #ffffff;
    text-align: left;


}
.footcontent,.footroute{
    font-family: MicrosoftYaHei;
	font-size: 12px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: -1px;
	color: #ffffff;
    text-align: left;
    padding-top: 10px;
}
.footinfo{
    font-family: MicrosoftYaHei;
	font-size: 14px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: -1px;
	color: #ffffff;
    height: 5vh;
    line-height: 5vh;
}

</style>
